home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Why NULL.2 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Why NULL
  2. Sent:        5/23/96 7:24 PM
  3. Received:    5/24/96 8:49 AM
  4. From:        Damon Cokenias, cokenias@mtn-palace.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Dear ODF Team:
  9. >
  10. >Why does ODF defines a NULL macro instead of using C++'s nil? I
  11. >suppose there is a good reason, but I cannot figure it out...
  12. >
  13. >Serge
  14.  
  15. 'nil' is actually Pascal.  The only reason you see it in Mac C/C++ code is
  16. because that's how Inside Mac tought us to program.  C++ defines NULL in
  17. locale.h, but never defines nil.  (These are the CodeWarrior headers I am
  18. looking at).
  19.  
  20. Personally, I hate NULL.  I find it awkward to type and ugly in source
  21. code.  Nobody is forcing you to use it of course, just #define nil NULL.
  22. But you knew that.
  23.  
  24. -Damon
  25.  
  26.  
  27. +-----------------------------------------------------------------------+
  28. |   /\    Damon Cokenias                                                |
  29. |  /^^\   cokenias@mtn-palace.com                                       |
  30. | /____\  Visit the Mountain Palace at http://www.netgate.net/~cokenias |
  31. +-----------------------------------------------------------------------+
  32.  
  33.